class IndexReaction : StaticReaction
{
    public IndexReaction(string page) : base(page) {
        
    }
    
    public override string GetContent() {
    
        var ret = base.GetContent();
        var options = "";
        var any_users = false;
        foreach(var profile in Helpers.GetProfiles()) {
            any_users = true;
            options += "<option>" + Helpers.GetNameFromProfile(profile) + "</option>";
        }
        
        ret = ret.Replace("#{USERS}", options);
        ret = ret.Replace("#{LOGIN_DISABLED}", any_users ? "" : "disabled");
        
        return ret;
    }
}
